<?php
require('includes/top.php');
$title ='Request Accessories';
$content = 'request_accessories';


if(!isset($_SESSION['user_name']) || $_SESSION['user_groups_id']!="2" && $_SESSION['user_groups_id']!="7" && $_SESSION['user_groups_id']!="6" &&$_SESSION['user_groups_id']!="8")
{
header('Location: logoff.php');
}





$reqemp_array = explode('_',$_REQUEST['action']);
$rt = $reqemp_array[0];
$et = $reqemp_array[1];

if($rt=='ind' && $et=='new')
{
$indsel = 'selected="selected"';
$newsel = 'selected="selected"';
}
elseif($rt=='ind' && $et=='old')
{
$indsel = 'selected="selected"';
$oldsel = 'selected="selected"';
}
elseif($rt=='grp' && $et=='new')
{
$grpsel = 'selected="selected"';
$newsel = 'selected="selected"';
}
elseif($rt=='grp' && $et=='old')
{
$grpsel = 'selected="selected"';
$oldsel = 'selected="selected"';
}
else
{
$selected = '';
}
require('templates/main.tpl.php');
?>